package com.fly.wound.pay.pojo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付信息表对象
 *
 * Created by 陈健飞
 */
@Data
public class PayInfo {
    private Integer id;
    /** 用户id. */
    private Integer userId;
    /** 订单号. */
    private Long orderNo;
    /** 支付平台:1-支付宝,2-微信. */
    private Integer payPlatform;
    /** 订支付流水号. */
    private String platformNumber;
    /** 支付状态. */
    private String platformStatus;
    /** 支付金额. */
    private BigDecimal payAmount;
    /** 创建时间 */
    private Date createTime;
    /** 更新时间. */
    private Date updateTime;

    public PayInfo(Long orderNo, Integer payPlatform, String platformStatus, BigDecimal payAmount) {
        this.orderNo = orderNo;
        this.payPlatform = payPlatform;
        this.platformStatus = platformStatus;
        this.payAmount = payAmount;
    }
}